curl --request POST \
--url http:///%7B{baseurl}%7D/api/v1/management/action-classes \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"description": "From API Docs (optional)",
"environmentId": "{{environmentId}}",
"name": "My Action from Postman",
"noCodeConfig": {
"innerHtml": {
"value": "sign-up"
},
"type": "innerHtml"
},
"type": "code"
}'
{
"data": {
"createdAt": "2024-04-23T08:58:47.507Z",
"description": null,
"environmentId": "clurwouax000azffxt7n5unn3",
"id": "clvc5m82c000z494jkvnw1gh0",
"name": "My Action from Postman",
"noCodeConfig": null,
"type": "code",
"updatedAt": "2024-04-23T08:58:47.507Z"
}
}
Create Action Class from the UI or from the API! You can read more about them here.
curl --request POST \
--url http:///%7B{baseurl}%7D/api/v1/management/action-classes \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{
"description": "From API Docs (optional)",
"environmentId": "{{environmentId}}",
"name": "My Action from Postman",
"noCodeConfig": {
"innerHtml": {
"value": "sign-up"
},
"type": "innerHtml"
},
"type": "code"
}'
{
"data": {
"createdAt": "2024-04-23T08:58:47.507Z",
"description": null,
"environmentId": "clurwouax000azffxt7n5unn3",
"id": "clvc5m82c000z494jkvnw1gh0",
"name": "My Action from Postman",
"noCodeConfig": null,
"type": "code",
"updatedAt": "2024-04-23T08:58:47.507Z"
}
}
OK
The response is of type object
.
Was this page helpful?